<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>天朝企业</title>
<link rel="icon"
	href="<%=request.getContextPath()%>/static/common/img/favicon.ico"
	type="image/x-icon" />
<%@include file="/view/common/js-css.jsp"%>
<link href="<%=request.getContextPath()%>/view/company/home/common.css" rel="stylesheet"
	type="text/css">
<link href="<%=request.getContextPath()%>/view/company/home/job.css" rel="stylesheet"
	type="text/css">
</head>
<body data-navbar="job">
	<div class="navbar-wrapper">
		<div class="container" id="navcontainer">
			<nav class="navbar  navbar-fixed-top " style="background-color:#9d9d9d"
				role="navigation">
				<div class="container" >
					<div class="navbar-header">
						<span class="navbar-brand">欢迎你： <c:if
								test="${!empty company }">
								<span class="pull-right label label-warning"> <a
									href="<%=request.getContextPath()%>/CompanyServlet?command=main">${company.name }</a>
								</span>
							</c:if> <c:if test="${!empty talent }">
								<span class="pull-right label label-warning"> <a
									href="<%=request.getContextPath()%>/TalentServlet?command=main">${talent.name }</a>
								</span>
							</c:if> <c:if test="${empty talent &&empty company}">
								<span class="pull-right label label-warning"> 游客 </span>
							</c:if>
					</div>
					
					<div class="navbar-right">
						<ul class="nav navbar-nav">

							<c:if test="${empty talent }">
								<li style="float:left;font-size:21px;margin-top:5px;"><a data-toggle="modal" style="color:#e0e0e0"
									href="<%=request.getContextPath()%>/view/talent/login.jsp">用户登录|</a></li>
								<li style="float:left;font-size:21px;margin-top:5px;"><a data-toggle="modal" style="color:#e0e0e0"
									href="<%=request.getContextPath()%>/view/talent/register.jsp">用户注册|</a></li>
							</c:if>
							<c:if test="${empty company }">
								<li style="float:left;font-size:21px;margin-top:5px;"><a data-toggle="modal" style="color:#e0e0e0"
									href="<%=request.getContextPath()%>/view/company/company-login.jsp">企业登录|</a></li>
								<li style="float:left;font-size:21px;margin-top:5px;"><a data-toggle="modal" style="color:#e0e0e0"
									href="<%=request.getContextPath()%>/view/company/company-register.jsp">企业注册|</a></li>
							</c:if>
							<li style="float:left;font-size:20px;margin-top:5px;"><a style="color:#0000e3"
								href="<%=request.getContextPath()%>/PositionServlet?command=listAllPosition">招聘首页</a></li>
						</ul>
					</div>
				</div>
			</nav>

		</div>
	</div>
	<div style="margin-top: 60px"></div>
	<div id="suspend" style="bottom: 20px; opacity: 1;">
		<a href="javascript:;" id="backtop"><i
			class="glyphicon glyphicon-arrow-up"></i></a>
	</div>
	<div id="job-view-enterprise">
		<div class="wrap clearfix">
			<div class="main ">
				<div class="about-position">
					<div class="title-info">

						<h1>${pe.name }</h1>
						<h3>

							<a href="https://www.liepin.com/company/8226090/" data-promid=""
								target="_blank">${pe.companyName }</a>
						</h3>

						<span class="triangle"></span>
					</div>
					<!-- 已暂停职位 -->

					<div class="job-item">
						<div class="clearfix">
							<div class="job-title-left">
								<p class="job-item-title">${pe.salary1 }-${pe.salary2 }
									<em></em> <span class="blue" title="反馈时间以工作日为准，周末和假期时间不会计算在内">${pe.releaseTimeStr }</span>


								</p>
								<p class="basic-infor">
									<span> <i class="icons24 icons24-position"></i> <a
										href="https://www.liepin.com/bj/">北京</a>

									</span> <span> <i class="icons24 icons24-time"></i>前天
									</span>
								</p>
								<div class="job-qualifications">

									<span>学历不限</span> <span>经验不限</span> <span>普通话</span> <span>年龄不限</span>
								</div>
							</div>
							<!-- 收藏按钮 start -->
							<div class="right-control">

								<div class="right-operation">

									<a class="link-collection" data-selector="link-collection"
										data-value="0" href="javascript:;">收藏</a>

								</div>


								<div data-selector="fix-jobapply" class="fix-stop">
									<c:if test="${empty application && !empty talent}">
										<select id="resume">
											<option value="">--请选择简历--</option>
											<c:forEach items="${resumeList }" var="resume">
												<option value="${resume.id }">${resume.intention }</option>
											</c:forEach>
										</select>
									</c:if>
									<c:if test="${empty application}">
									<input type="button" value="职位申请" class="btn-apply btn btn-warning" onclick="apply()"/>
									</c:if>
									<c:if test="${!empty application}">
										<span class="btn btn-default btn-apply">已申请职位${application.statusStr }</span>
									</c:if>
								</div>

							</div>
						</div>
						<!-- tags -->

						<div class="tag-list">

							<span class="tag" title="扁平管理">扁平管理</span> <span class="tag"
								title="领导好">领导好</span> <span class="tag" title="六险一金">六险一金</span>

							<span class="tag" title="免费三餐">免费三餐</span>

						</div>

					</div>
					<!-- 职位描述 -->
					<div class="job-item main-message">
						<h3 class="job-title">职位描述：</h3>
						<div class="content content-word">
							职位描述<br>-${pe.duty }<br> 任职资格<br>-${pe.ability }
						</div>
					</div>

					<!-- 其他信息 -->
					<div class="job-item main-message">
						<h3 class="job-title">其他信息：</h3>
						<div class="content">
							<ul>
								<li><span>所属部门：</span><label>技术团队</label></li>
								<li><span>专业要求：</span><label>不限</label></li>

								<li><span>汇报对象：</span><label>无</label></li>

								<li><span>下属人数：</span><label> 0人</label></li>


							</ul>
						</div>
					</div>

					<!-- 企业介绍 -->

					<div class="job-item main-message noborder"
						data-selector="introduction">
						<h3 class="job-title">企业介绍：</h3>
						<div class="content content-word">${pe.companySlogan }</div>
					</div>

					<div class="job-resume-block " data-selector="job-resume-block"></div>
					<div class="report-area">
						<a class="close-btn" href="javascript:;"
							data-selector="report-close-btn">×</a>
						<h4>温馨提示：</h4>
						<p>
							如在投递及面试过程中遇到招聘方的任何收费行为（ 如培训费、 体检费、 资料费、 置装费、
							押金等），则存在诈骗风险，请您务必提高警惕。 <a href="javascript:;" class="link-report"
								data-selector="report-up">举报</a>

						</p>
					</div>
				</div>


			</div>
			<div class="side">

				<div class="right-blcok-post">
					<div class="right-post-top">
						<h3 class="job-title">职位发布者</h3>
						<div class="publisher-infor">
							<p>
								<img class="tinyFace circle"
									src="${ctx}/view/company/home/549bd5c4a310007f67dbac4e02c.png">
							</p>
							<p class="publisher-name">
								<span>${pe.companyLinkman }</span> <em class="muted">/
									recruiter</em>
							</p>
							<p>${pe.companyName }</p>

							<p>
								<a class="btn btn-primary" data-selector="communicate-now"
									data-emusername="6729692232q1872146113" href="javascript:;">立即沟通</a>
							</p>

						</div>

						<div class="apply-check">
							<span> <em>74</em> %
								<p class="muted">应聘查看率</p>
							</span> <span> <em>1</em> 天
								<p class="muted">应聘查看用时</p>
							</span>
						</div>

						<div class="company-infor">
							<h3 class="job-title">企业简介</h3>
							<h4>
								<a class="word" href="https://www.liepin.com/company/8226090/"
									title="智者四海(北京)技术有限公司" target="_blank">${pe.companyName }</a> <a
									href="javascript:;"
									class="btn-attention btn-info btn-attention-add"
									data-uid="8226090">关注</a>
							</h4>
							<ul>

								<li>社交/社区/媒体</li>
								<li>B轮</li>


								<li>${pe.companyNumbers }</li>


								<li>私营·民营企业</li>

							</ul>



							<p>
								<i class="icons16 icons16-position"></i>${pe.companyAddress }</p>

						</div>
					</div>



				</div>
			</div>
		</div>

	</div>
	<script>
	if('${result}' === '1' || '${param.result}' === '1'){
		layer.msg('职位申请成功',{icon:1})
	}
	if('${result}' === '0' || '${param.result}' === '0'){
		layer.msg('职位申请失败',{icon:0})
	}
	function apply(){
		var positionId='${pe.id}';
		if(!'${talent}'){
			layer.msg('请先登录,在申请职位~',{
				icon:1,
				time:2000},function(){
			location='<%=request.getContextPath()%>/view/talent/login.jsp';
			});
			return;
		}
		var resumeId = document.getElementById("resume").value;
		if(resumeId == ''){
			layer.msg('没有选中简历',{icon:0});
			return;
		}
		location='<%=request.getContextPath()%>/PositionServlet?command=apply&positionId='
					+ positionId + '&resumeId=' + resumeId;
		}
	</script>
</body>
</html>